<Content>
    Value的值: @Value
</Content>
<Columns>
    <Column>
        <Cascader Data="data" @bind-Value="Value">
        </Cascader>
    </Column>
    <Column>
        <Cascader Color="Color.Danger" Data="data" @bind-Value="Value" IsSmall>
        </Cascader>
    </Column>
</Columns>


@code{

    string Value = "";
    //下面为了方便，直接从json文件加载数据
    static string dataFile = "Pages/data/data1.json";
    List<CascaderItem<string>> data = Cascader<string>.BuildDataFromJson(System.IO.File.ReadAllText(dataFile));
}